<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/main.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/user.css" />
<title>Insert title here</title>
</head>
<body>	
	<input type="button" value="添加" onclick="addUserinfo()"/>
	<table border="1" width="30%">
	<c:forEach items="${userInfoList}" var="userinfo">
		<tr>
			<td><c:out value="${userinfo.userId}"></c:out> &nbsp;</td>
			<td><c:out value="${userinfo.userName}"></c:out>&nbsp;</td>
			<td><c:out value="${userinfo.userSex}"></c:out>&nbsp;</td>
			<td><c:out value="${userinfo.userPhone}"></c:out>&nbsp;</td>
			<td><c:out value="${userinfo.userAdree}"></c:out>&nbsp;</td>
			<td><c:out value="${userinfo.userAge}"></c:out>&nbsp;</td>
			<td><c:out value="${userinfo.userEmail}" ></c:out>&nbsp;</td>
			<td>修改</td>
		</tr>
	</c:forEach>
	</table>
</body>
<script>
	function addUserinfo(){
		window.location.href = "userManager.action?method=toLogin";
	}
</script>
</html>